MATLAB/Simulink Platform
MATLAB/Simulink is a well known test execution platform. The test execution engine is implemented as an S-function in Simulink, see MATLAB/Simulink Platform - Connect the S-function. The S-function passes the values calculated by the SUT to the TPT execution engine. For each time step, all outputs of the SUT are inputs to the TPT-VM. Thus, all values that are needed for the test execution need to be declared as inputs in TPT and all TPT outputs are inputs into the SUT. The interface of the TPT S-function is defined by the channel declaration of the TPT testlet. Internal MATLAB functions as well as functions from m-scripts can be called in the "Call function" step, see Step Type - Call Function.
-
TPT supports MATLAB 7.10 (R2010a) and higher.
-
TPT supports the use of Simulink Data Dictionaries for MATLAB 8.5 (R2015a) and higher.
-
TPT can generate a 32-bit or 64-bit DLL (depending on the architecture of MATLAB) from a MATLAB/Simulink model for running test cases with the FUSION Platform.
-
TPT S-function supports symbolic dimensions. Make sure the dimensions for your SUT are set correctly (e.g. set the parameters in TPT). If a TVM file is available, the TPT S-function will use the signal dimensions from that file. If no TVM file is available, the dimensions will be the one specified in the workspace. In this case, make sure your test case has the correct input/output dimensions for the signals (specify for this purpose proper initial values for the test case).
Uint64
data types are not supported by TPT. Whenever using uint64
as data type with MATLAB, it will be imported to TPT as int64
and converted to uint64
when writing the data to MATLAB at runtime.